package com.chezai.client.global;

/**
 * Created by likunyang on 2017/8/24.
 */

public class Const {
    public static final String INIT_PROVIDER = "init";
    public static final int DATA_TIME_OUT_DAY = 3;
    public static final String TAKE_PHOTO_MODE = "takePhotoMode";
    public static final String COUNT_DOWN_TIME = "countDownTime";
    public static final String EVENT_PHOTO_TYPE = "eventPhotoType";
    public static final String TRAIN_PART = "trainPart";
    public static final String STUDENT_NAME = "studentName";
    public static final String COACH_NAME = "coachName";
    public static final String CAMERA_CHANNEL = "cameraChannel";
    public static final String CLASS_RECORD_ID = "classRecordId";
    public static final String RANDOM_PHOTO_ID = "randomPhotoId";
    public static final String IS_END_SUPPLEMENT_PHOTO = "isEndSupplementPhoto";
    public static final String STUDENT_UID = "studentUid";
    public static final int TRY_COUNT = 6; //学时，抓拍重传次数
    public static final int UPLOAD_FAILED = 0;
    public static final int UPLOAD_SUCESS = 1;
    public static final int UPLOAD_UNKNOW = 2;
    public static final int CHANNEL_ACTIVE = 10002;//通道连接
    public static final int CHANNEL_INACTIVE = 10003;//通道断开
    public static final int HEADER_JUMP = 10005;//心跳
    public static final int INIT_SOCKET_CLIENT = 10006;//初始化终端
    //立宇泰
    public static final String C703B = "C703B";
    public static final String C501 = "C501";
    //小鹿学车
    public static final String QHYC_C103 = "QHYC_C103";
    public static final String _PHONE = "_PHONE";
    public static final String SIGN = "{driving}";
    public static final String COACH_TRAIN_RECORD_FRAGMENT_TAG = "coachTrainRecordFragment";
    public static final String STUDENT_INFO_FRAGMENT_TAG = "studentInfoFragment";
    public static final String LEARN_CAR_FRAGMENT_TAG = "learnCarFragment";
    //当前教学 课堂编号
    public static final String SP_CURRENT_COURSE_NUM = "current_course_num";
    //学员课堂ID
    public static final String SP_STUDENT_CLASS_ID = "student_class_id";
    //教练课堂ID
    public static final String SP_COACH_CLASS_ID = "coach_class_id";
    //终端是否注册
    public static final String SP_IS_TERMINAL_REGISTER = "isTerminaRegister";
    public static final String SP_TERMINAL_BASE_INFO_ID = "terminalBaseInfoId";
    public static final String SP_IS_OPEN_VERITY = "openVerity";//人脸认证
    //禁止训练
    public static final String SP_IS_PROHIBIT_TRAIN = "isProhibit";
    public static final String SP_PROHIBIT_MSG = "prohibitMsg";
    public static final String SP_POWER_TIME = "power_time";
    //是否开启日志服务
    public static final String SP_IS_OPEN_LOG_SERVICE = "openService";
    public static final String SP_SERIAL_NO = "serialNo";
    public static final String SP_IS_OPEN_LOC_LOG = "isOpenLocLog";
    public static final String BUNDLE_KEY_PARAM_TYPE = "paramType";
    public static final int CAR_TYPE = 1;//车载终端
    public static final int CLASS_TYPE = 2;//课堂终端
    public static final int SIMULATE_TYPE = 3;//模拟终端
    public static final int DIALOG_HAS_UNFINISH_TAG = 7;//科二科三有未结束训练
    public static final int DIALOG_PROHIBIT_TAG = 6;//设备禁训
    public static final int DIALOG_DEVICE_UNREGISTER_TAG = 8;//设备未注册
    public static final int ALERT_COACH_DIFF_TAG = 4;//登录登出教练身份不一致
    /**
     * 登录人员类型
     */
    public static final short LOGIN_ROLE_COACH = 1;//教练员
    public static final short LOGIN_ROLE_CHECKER = 2;//考核员
    public static final short LOGIN_ROLE_SAFER = 3;//安全员
    public static final short LOGIN_ROLE_STUDENT = 4;//学员
    /**
     * 登录方式
     */
    public static final short LOGIN_TYPE_APP = 2;//二维码
    public static final short LOGIN_TYPE_FACE = 4;//人脸识别
    public static final short LOGIN_TYPE_WX = 5;//微信
    public static final short LOGIN_TYPE_RFID = 6;//RFID
    public static final short LOGIN_TYPE_VERT = 7;//验证码
    public static final short LOGIN_TYPE_IDCARD = 8;//身份证
    //二维码有效时间 60秒
    public static final int QR_CODE_TIME = 60;
    public static final String ALARM_ACTION = "com.chezai.alarm.ALARM_HOUR";
    public static final String UPDATE_APP = "com.chezai.terminalbroadcast.UPDATE_APP";
    public static final String RESTART_UPLOAD_GNSS_SERVICE = "com.chezai.termianlbroadcast.RESTART_UPLOAD_GNSS";
    public static final int CAMERA_HAS_STARTED_PREVIEW = 0x0001;
    public static boolean IS_STOP_UPLOAD_GNSS = false;
    public static String SP_IS_REBOOT = "is_reboot";//是否为自动重启设备
    public static String SP_INTERVAL_TIME= "interval_time";//抓拍时间间隔
    public static String SP_SUBJECT_TYPE = "subject_type";//设备类型
    public static boolean isTakePhoto = false;//是否
    public static boolean IS_TRAINING = false;//是否正在练车中
    public static final String SP_BEST_LAT = "bestLat";
    public static final String SP_BEST_LON = "bestLon";
    public static String SCHOOL_NAME;//驾校名称
    public static String CAR_CODE;//车牌照

    //终端控制常量
    public static class ControlEvent {
        //无线升级
        public static final int APP_UPDATA = 1;
        //控制终端连接指定服务器
        public static final int CONNET_SERVER = 2;
        //终端关机
        public static final int TERMINAL_CLOSE = 3;
        //终端复位
        public static final int TERMINAL_RESET = 4;
        //终端恢复出厂设置
        public static final int TERMINAL_RESET_SETTING = 5;
        //关闭数据通信
        public static final int CLOSE_NET = 6;
        //关闭所有无线通信
        public static final int CLOSE_ALL_NET = 7;
    }

    //拍照事件类型
    public static class PhotoEventType {
        /**
         * 中心查询的图片
         */
        public static final int CENTER_TAKE1 = 0;
        /**
         * 学员人脸登录
         */
        public static final int STUDENT_FACE_LOGIN = 25;
        /**
         * 学员登录拍照
         */
        public static final int STUDENT_SIGN_IN = 17;
        /**
         * 学员登出拍照
         */
        public static final int STUDENT_SIGN_OUT = 18;
        /**
         * 定时拍照
         */
        public static final short STUDENT_LEARNING = 5;
        /**
         * 学员培训过程中拍照
         */
        public static final int ZHUAPAI = 19;
        /**
         * 教练员登陆拍照
         */
        public static final int TEACHE_SIGN_IN = 20;
        /**
         * 教练员登出拍照
         */
        public static final int TEACHE_SIGN_OUT = 21;

    }

    //上传类型
    public static class UploadPhotoType {
        /**
         * 1：拍摄完成后自动请求上传
         */
        public static final short AUTO_UPLOAD = 1;
        /**
         * 2：拍摄完成后存储在本地；
         */
        public static final short NO_UPLOAD = 2;
        /**
         * 255：停止拍摄并上传图片
         */
        public static final short STOP_PHOTO = 255;
        /**
         * 129 :终端主动拍照上传
         */
        public static final short TERMINAL_UPLOAD = 129;

    }

    //培训部分
    public static class TrainPart {
        public static final int ONE = 1;//科一
        public static final int TWO = 2;//科二
        public static final int THREE = 3;//科三
        public static final int FOUR = 4;//科四
    }

    /**
     * 拍照类型
     */
    public static class TakePhotoMode {
        public static final int COUNT_DOWN_TIME = 1;//倒计时拍照
        public static final int FACE_DETECTION = 2;//捕捉面部拍照
        public static final int TEST_CAMERA = 3;//调试
    }

    public static class CameraChannel {
        public static final int FONT = 1;//前置摄像头
        public static final int BACK = 0;//后置摄像头
    }

    public static class ConnectionOrder {
        public static final int NORMAL = 1;//前置摄像头
        public static final int CHANGE = 0;//后置摄像头
    }
    public static class TermianlParameter{
        public static final int HEAD_ID = 1;//心跳间隔ID
        public static final int TCP_TIMEOUT_ID = 2;//tcp超时时间ID
        public static final int TCP_RETRY_COUNT_ID = 3;//TCP尝试
        public static final int UDP_TIMEOUT_ID = 4;//udp超时时间ID
        public static final int UDP_RETRY_COUNT_ID = 5;//UDP尝试
        public static final int SMS_TIMEOUT_ID = 6;//SMS超时时间ID
        public static final int SMS_RETRY_COUNT_ID = 7;//SMS尝试
        public static final int MAIN_SERVER_APN_ID = 16;//主服务器APN
        public static final int MAIN_SERVER_USERNAME_ID = 17;
        public static final int MAIN_SERVER_PASSWORD_ID = 18;
        public static final int MAIN_SERVER_IP_ID = 19;
        public static final int SECOND_SERVER_APN_ID = 20;
        public static final int SECOND_SERVER_USERNAME_ID = 21;
        public static final int SECOND_SERVER_PASSWORD_ID = 22;
        public static final int SECOND_SERVER_IP_ID = 23;
        public static final int TCP_PORT_ID = 24;
        public static final int UDP_PORT_ID = 25;
        public static final long TAKE_PHOTO_INTERVAL_ID = 1048577;
    }
}
